import { defineStore } from 'pinia'
interface PrintState {
    /** 当前模板信息 */
    info:any
    /** 当前模板设计器内容 */
    hiprintTemplate: any,
    /** 是否新建模板 */
    isNewTemplate:boolean
}

export const usePrintStore = defineStore('print-store', {
    state: (): PrintState => ({
        info:{
            id: '',
            sn: '',
            name: '',
            content: {},
            remark: '',
            testJsonData: {},
            testApiUrl: ''
        },
        hiprintTemplate:null,
        isNewTemplate:false
    }),
    actions: {
    }
})
